package com.micro.shop.model;

import java.io.Serializable;

public class ProductCategory implements Serializable {
    /**
     * 分类id
     * 表 : bestfenxiao_product_category
     * 对应字段 : cat_id
     */
    private Integer catId;

    /**
     * 分类名称
     * 表 : bestfenxiao_product_category
     * 对应字段 : cat_name
     */
    private String catName;

    /**
     * 描述
     * 表 : bestfenxiao_product_category
     * 对应字段 : cat_desc
     */
    private String catDesc;

    /**
     * 父类id
     * 表 : bestfenxiao_product_category
     * 对应字段 : cat_fid
     */
    private Integer catFid;

    /**
     * wap端栏目图片
     * 表 : bestfenxiao_product_category
     * 对应字段 : cat_pic
     */
    private String catPic;

    /**
     * pc端栏目图片
     * 表 : bestfenxiao_product_category
     * 对应字段 : cat_pc_pic
     */
    private String catPcPic;

    /**
     * 状态
     * 表 : bestfenxiao_product_category
     * 对应字段 : cat_status
     */
    private Byte catStatus;

    /**
     * 排序，值越大优前
     * 表 : bestfenxiao_product_category
     * 对应字段 : cat_sort
     */
    private Integer catSort;

    /**
     * 
     * 表 : bestfenxiao_product_category
     * 对应字段 : cat_path
     */
    private String catPath;

    /**
     * 级别
     * 表 : bestfenxiao_product_category
     * 对应字段 : cat_level
     */
    private Byte catLevel;

    /**
     * 拥有的属性id 用,号分割
     * 表 : bestfenxiao_product_category
     * 对应字段 : filter_attr
     */
    private String filterAttr;

    /**
     * tag列表，每个tag_id之间用逗号分割
     * 表 : bestfenxiao_product_category
     * 对应字段 : tag_str
     */
    private String tagStr;

    /**
     * 父类状态
     * 表 : bestfenxiao_product_category
     * 对应字段 : cat_parent_status
     */
    private Byte catParentStatus;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table bestfenxiao_product_category
     *
     * @mbggenerated Thu Apr 19 01:26:48 CST 2018
     */
    private static final long serialVersionUID = 1L;

    /**
     * get method 
     *
     * @return bestfenxiao_product_category.cat_id：分类id
     */
    public Integer getCatId() {
        return catId;
    }

    /**
     * set method 
     *
     * @param catId  分类id
     */
    public void setCatId(Integer catId) {
        this.catId = catId;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_product_category.cat_name：分类名称
     */
    public String getCatName() {
        return catName;
    }

    /**
     * set method 
     *
     * @param catName  分类名称
     */
    public void setCatName(String catName) {
        this.catName = catName == null ? null : catName.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_product_category.cat_desc：描述
     */
    public String getCatDesc() {
        return catDesc;
    }

    /**
     * set method 
     *
     * @param catDesc  描述
     */
    public void setCatDesc(String catDesc) {
        this.catDesc = catDesc == null ? null : catDesc.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_product_category.cat_fid：父类id
     */
    public Integer getCatFid() {
        return catFid;
    }

    /**
     * set method 
     *
     * @param catFid  父类id
     */
    public void setCatFid(Integer catFid) {
        this.catFid = catFid;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_product_category.cat_pic：wap端栏目图片
     */
    public String getCatPic() {
        return catPic;
    }

    /**
     * set method 
     *
     * @param catPic  wap端栏目图片
     */
    public void setCatPic(String catPic) {
        this.catPic = catPic == null ? null : catPic.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_product_category.cat_pc_pic：pc端栏目图片
     */
    public String getCatPcPic() {
        return catPcPic;
    }

    /**
     * set method 
     *
     * @param catPcPic  pc端栏目图片
     */
    public void setCatPcPic(String catPcPic) {
        this.catPcPic = catPcPic == null ? null : catPcPic.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_product_category.cat_status：状态
     */
    public Byte getCatStatus() {
        return catStatus;
    }

    /**
     * set method 
     *
     * @param catStatus  状态
     */
    public void setCatStatus(Byte catStatus) {
        this.catStatus = catStatus;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_product_category.cat_sort：排序，值越大优前
     */
    public Integer getCatSort() {
        return catSort;
    }

    /**
     * set method 
     *
     * @param catSort  排序，值越大优前
     */
    public void setCatSort(Integer catSort) {
        this.catSort = catSort;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_product_category.cat_path：
     */
    public String getCatPath() {
        return catPath;
    }

    /**
     * set method 
     *
     * @param catPath  
     */
    public void setCatPath(String catPath) {
        this.catPath = catPath == null ? null : catPath.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_product_category.cat_level：级别
     */
    public Byte getCatLevel() {
        return catLevel;
    }

    /**
     * set method 
     *
     * @param catLevel  级别
     */
    public void setCatLevel(Byte catLevel) {
        this.catLevel = catLevel;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_product_category.filter_attr：拥有的属性id 用,号分割
     */
    public String getFilterAttr() {
        return filterAttr;
    }

    /**
     * set method 
     *
     * @param filterAttr  拥有的属性id 用,号分割
     */
    public void setFilterAttr(String filterAttr) {
        this.filterAttr = filterAttr == null ? null : filterAttr.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_product_category.tag_str：tag列表，每个tag_id之间用逗号分割
     */
    public String getTagStr() {
        return tagStr;
    }

    /**
     * set method 
     *
     * @param tagStr  tag列表，每个tag_id之间用逗号分割
     */
    public void setTagStr(String tagStr) {
        this.tagStr = tagStr == null ? null : tagStr.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_product_category.cat_parent_status：父类状态
     */
    public Byte getCatParentStatus() {
        return catParentStatus;
    }

    /**
     * set method 
     *
     * @param catParentStatus  父类状态
     */
    public void setCatParentStatus(Byte catParentStatus) {
        this.catParentStatus = catParentStatus;
    }

    /**
     *
     * @param that
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ProductCategory other = (ProductCategory) that;
        return (this.getCatId() == null ? other.getCatId() == null : this.getCatId().equals(other.getCatId()))
            && (this.getCatName() == null ? other.getCatName() == null : this.getCatName().equals(other.getCatName()))
            && (this.getCatDesc() == null ? other.getCatDesc() == null : this.getCatDesc().equals(other.getCatDesc()))
            && (this.getCatFid() == null ? other.getCatFid() == null : this.getCatFid().equals(other.getCatFid()))
            && (this.getCatPic() == null ? other.getCatPic() == null : this.getCatPic().equals(other.getCatPic()))
            && (this.getCatPcPic() == null ? other.getCatPcPic() == null : this.getCatPcPic().equals(other.getCatPcPic()))
            && (this.getCatStatus() == null ? other.getCatStatus() == null : this.getCatStatus().equals(other.getCatStatus()))
            && (this.getCatSort() == null ? other.getCatSort() == null : this.getCatSort().equals(other.getCatSort()))
            && (this.getCatPath() == null ? other.getCatPath() == null : this.getCatPath().equals(other.getCatPath()))
            && (this.getCatLevel() == null ? other.getCatLevel() == null : this.getCatLevel().equals(other.getCatLevel()))
            && (this.getFilterAttr() == null ? other.getFilterAttr() == null : this.getFilterAttr().equals(other.getFilterAttr()))
            && (this.getTagStr() == null ? other.getTagStr() == null : this.getTagStr().equals(other.getTagStr()))
            && (this.getCatParentStatus() == null ? other.getCatParentStatus() == null : this.getCatParentStatus().equals(other.getCatParentStatus()));
    }

    /**
     *
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCatId() == null) ? 0 : getCatId().hashCode());
        result = prime * result + ((getCatName() == null) ? 0 : getCatName().hashCode());
        result = prime * result + ((getCatDesc() == null) ? 0 : getCatDesc().hashCode());
        result = prime * result + ((getCatFid() == null) ? 0 : getCatFid().hashCode());
        result = prime * result + ((getCatPic() == null) ? 0 : getCatPic().hashCode());
        result = prime * result + ((getCatPcPic() == null) ? 0 : getCatPcPic().hashCode());
        result = prime * result + ((getCatStatus() == null) ? 0 : getCatStatus().hashCode());
        result = prime * result + ((getCatSort() == null) ? 0 : getCatSort().hashCode());
        result = prime * result + ((getCatPath() == null) ? 0 : getCatPath().hashCode());
        result = prime * result + ((getCatLevel() == null) ? 0 : getCatLevel().hashCode());
        result = prime * result + ((getFilterAttr() == null) ? 0 : getFilterAttr().hashCode());
        result = prime * result + ((getTagStr() == null) ? 0 : getTagStr().hashCode());
        result = prime * result + ((getCatParentStatus() == null) ? 0 : getCatParentStatus().hashCode());
        return result;
    }
}